     $(document).ready(function(){
       //Submit form
       $('#signinButton').click(function() {
          $('#signinForm').submit();
        });
       //Sign in focus changes (style and default values
       // default styles
       $('#signin_username').css('color','#aaa');
       $('#signin_passwordtext').show();
       $('#signin_password').hide();
       $('#signin_passwordtext').css('color','#aaa');

       $('#signin_username').attr('value', '<?php echo __('Username');?>');

       $('#signin_username').focus(function(){

            this.valuedefault = this.valuedefault || this.value;

            if (this.value == this.valuedefault)

                this.value = '';

            $(this).css('color','#000');

        });
        $('#signin_username').blur(function(){

            if (this.value.length == 0 || this.value == this.valuedefault)

                $(this).css('color','#aaa');

            if (this.valuedefault && this.value.length==0)

                this.value = this.valuedefault;

        });
        $('#signin_passwordtext').focus(function() {
	    $('#signin_passwordtext').hide();
	    $('#signin_password').show();
	    $('#signin_password').focus();
	});
	$('#signin_password').blur(function() {
	    if($('#signin_password').val() == '') {
	        $('#signin_passwordtext').show();
	        $('#signin_password').hide();
	    }
	});
        //End focus and default efects

     });//end onReady